﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.ProcessExamine
{
    public interface IQcProcessRecordServices
    {

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model">检验单据</param>
        /// <param name="model2">工序检验对比表</param>
        /// <param name="model3">工序检验结果表</param>
        /// <returns></returns>
        public Task<bool> AddAsync(QcProcessRecord model, QcProcessRecordItem model2, QcProcessRecordResult model3);

        /// <summary>
        /// 获取所有数据
        /// </summary>
        /// <returns></returns>
        public Task<IEnumerable<QcProcessRecord>> GetAllAsync();
        /// <summary>
        /// 根据分页获取所有数据
        /// </summary>
        /// <param name="PageIndex">当前页</param>
        /// <param name="PageSize">页大小</param>
        /// <param name="RecordCode">工序检验单编号</param>
        /// <param name="ProcessCode">工序编号</param>
        /// <param name="ReportUser">报工人</param>
        /// <returns></returns>
        public Task<IEnumerable<QcProcessRecord>> GetAsync(int PageIndex, int PageSize, string RecordCode, string ProcessCode, string ReportUser);
        /// <summary>
        /// 获取总条数
        /// </summary>
        /// <param name="RecordCode">工序检验单编号</param>
        /// <param name="ProcessCode">工序编号</param>
        /// <param name="ReportUser">报工人</param>
        /// <returns></returns>
        public Task<int> GetCountAsync(string RecordCode, string ProcessCode, string ReportUser);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model">检验单据</param>
        /// <param name="model2">工序检验对比表</param>
        /// <param name="model3">工序检验结果表</param>
        /// <returns></returns>
        public Task<bool> UpdateAsync(QcProcessRecord model, QcProcessRecordItem model2, QcProcessRecordResult model3);


        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="Ids"></param>
        /// <returns></returns>
        public Task<bool> DeleteAsync(int[] Ids);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public Task<bool> DeleteAsync(int Id);




    }
}
